using System;
using System.Xml.Serialization;
using System.Collections.Generic;

namespace Aop.Api.Domain
{
    /// <summary>
    /// AlipayEcoMedicalcareHosTradenotifyModel Data Structure.
    /// </summary>
    [Serializable]
    public class AlipayEcoMedicalcareHosTradenotifyModel : AopObject
    {
        /// <summary>
        /// 科室信息
        /// </summary>
        [XmlElement("dept_info")]
        public MedicalHospitalDeptInfo DeptInfo { get; set; }

        /// <summary>
        /// 医生信息
        /// </summary>
        [XmlElement("doctor_info")]
        public MedicalHospitalDoctorInfo DoctorInfo { get; set; }

        /// <summary>
        /// 扩展参数json格式
        /// </summary>
        [XmlElement("extend_params")]
        public string ExtendParams { get; set; }

        /// <summary>
        /// 医院信息
        /// </summary>
        [XmlElement("hos_info")]
        public MedicalHospitalInfo HosInfo { get; set; }

        /// <summary>
        /// 订单详情链接
        /// </summary>
        [XmlElement("link")]
        public string Link { get; set; }

        /// <summary>
        /// 通知日期,如果不穿通知时间，逻辑由支付宝内部消化判断  格式为yyyy-MM-dd HH:mm:ss。
        /// </summary>
        [XmlElement("notify_time")]
        public string NotifyTime { get; set; }

        /// <summary>
        /// 操作类型：  创建并更新CREATE_UPDATE  删除DELETE
        /// </summary>
        [XmlElement("operate")]
        public string Operate { get; set; }

        /// <summary>
        /// 患者证件号码
        /// </summary>
        [XmlElement("patient_card_no")]
        public string PatientCardNo { get; set; }

        /// <summary>
        /// 证件类型
        /// </summary>
        [XmlElement("patient_card_type")]
        public string PatientCardType { get; set; }

        /// <summary>
        /// 患者姓名
        /// </summary>
        [XmlElement("patient_name")]
        public string PatientName { get; set; }

        /// <summary>
        /// 支付状态：  WAIT_BUYER_PAY未缴款  PAYED已缴款
        /// </summary>
        [XmlElement("pay_status")]
        public string PayStatus { get; set; }

        /// <summary>
        /// 挂号外部订单号
        /// </summary>
        [XmlElement("reg_out_trade_no")]
        public string RegOutTradeNo { get; set; }

        /// <summary>
        /// 第三方唯一序列号（可以是订单号确保唯一）
        /// </summary>
        [XmlElement("third_no")]
        public string ThirdNo { get; set; }

        /// <summary>
        /// 该笔订单的资金总额，精确到元。  单位：元
        /// </summary>
        [XmlElement("total_amount")]
        public string TotalAmount { get; set; }

        /// <summary>
        /// 就诊日期 格式为yyyy-MM-dd HH:mm:ss。
        /// </summary>
        [XmlElement("treat_date")]
        public string TreatDate { get; set; }

        /// <summary>
        /// 诊疗明细
        /// </summary>
        [XmlArray("treat_list")]
        [XmlArrayItem("medical_hospital_treat_list")]
        public List<MedicalHospitalTreatList> TreatList { get; set; }

        /// <summary>
        /// 支付宝用户Id
        /// </summary>
        [XmlElement("user_id")]
        public string UserId { get; set; }
    }
}
